const express = require('express');
const path = require('path');
const router = require('./02-router');

const app = express();

app.use('/public',express.static(path.join(__dirname,'./public')))

app.use(express.json());
app.use(express.urlencoded({ extended: false }));

app.engine('html',require('express-art-template'))

app.use(router)

app.listen(3000,() => {
  console.log('http://127.0.0.1:3000');
})